/**
 * Created by asus on 2017/7/31.
 */
$(function () {
    var couponid=getUrlParams('couponid');
    $.ajax({
        url:'http://127.0.0.1:3000/api/getcouponproduct',
        dataType:'json',
        data:{couponid:couponid},
        success:function (data) {
            console.log(data)
            var html=template('couponproduct-template',data);
            $('#menu').html(html);
        }
    })
})